package top.tagao.m01_structuralPatterns.s_01_proxyDesign.proxy_01_static;

/**
 * @author fu-xiao-liu
 * @Date 2022/3/26 17:12
 */
public class ProxyClothFactory implements ClothFactory{

    ClothFactory obj;

    /**
     * @date    用被代理类对象进行实例化
     */
    public ProxyClothFactory(ClothFactory obj) {
            this.obj = obj;
    }

    @Override
    public void produceCloth() {


        System.out.println("代理工厂做一些准备工作");
        obj.produceCloth();
        System.out.println("代理工厂做一些后续的收尾工作");
    }
}
